#include "Stdafx.h"
#include "NTEngine/Core/Core.h"
#include "Sound/src/ManagerImpl.h"

namespace NTEngine {
namespace Sound {

ManagerImpl* gManagerImpl = 0;

Manager::Manager() {
	ASSERT( Core::isMainThread() && "you must call from MAIN thread" );
}

Manager Manager::instance() {
	return Manager();
}

void Manager::create() {
	HARD_ASSERT( gManagerImpl == 0 );
	gManagerImpl = NEW ManagerImpl();
}

void Manager::destroy() {
	SAFE_DELETE( gManagerImpl );
}

} // namespace Audio
} // namespace NTEngine
